home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5644 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news1.radix.net!news
  2. From: jfw@radix.net (Jim Ward)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How to Display a File Backwards?
  5. Date: 20 Feb 1996 02:46:19 GMT
  6. Organization: RadixNet Internet Services
  7. Message-ID: <4gbclr$c7s@news1.radix.net>
  8. References: <4g3eplINNo0k@keats.ugrad.cs.ubc.ca> <4g51cj$t6o@newsbf02.news.aol.com>
  9. NNTP-Posting-Host: dialin4.annex1.radix.net
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-Newsreader: WinVN 0.99.7
  13.  
  14. In article <4g51cj$t6o@newsbf02.news.aol.com>, asciizero@aol.com says...
  15. >I have a message log file (text) that gets updated on a regular basis
  16. >depending on what errors the system detects during the course of its
  17. >operation. Now, I want a tool that would display the contents of the
  18. >message log beginning from the last line or the latest entry.
  19.  
  20. If I were doing it, I would prefix all my messages with a keyword that would
  21. never be included in the message text (such as "MESSAGE"), fseek() to the
  22. end of the file, and search backwords for the next keyword.
  23.  
  24. Jim Ward
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.